package com.king.util;

import com.king.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtils {
    public static AccountProfile getAccountProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
